package com.lyl.goods.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product {
    private Integer id;
    @NotEmpty(message = "商品名啥")
    private String name;
    private BigDecimal price;
    @JsonIgnore
    private Integer stock;
    private String description;
}